<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
 	#profile{
  	width: 100px;
  	height: 100px;
  }
  #content{
  	width: 600px; height: 600px;
  }
 </style>
 <script src="../js/jquery-2.1.1.js"></script>
 <script type="text/javascript">
  $(document).ready(function() {
	  $('#cancel').on('click',function(){
			history.back();	
		});
	});
 </script>
</head>
<body>
	<form name="writeform" action="/mamma/sanghyun/boardUpdate.action"  method="post" >
		<s:hidden name="boardVo.boardNum"></s:hidden>	
		
		<table border="1" cellspacing="3" cellpadding="3" align="center" width="700">
		<tr>
			<td rowspan="2"><img src="../photoData/${savedFile}" id="profile"> </td><td><s:property value="boardVo.nickname"/></td>
			
		</tr>
		<tr>
			<td><s:property value="boardVo.inputdate"/></td>		
		</tr>
		<tr>
			<th>제목 </th>
			<td><input type="text" name="boardVo.title" value="<s:property value='boardVo.title'/>"> </td>
		</tr>
		<tr>
			<th>조회수 </th>
			<td><s:property value="boardVo.viewCount"/></td>
		</tr>
		<tr><td colspan="2" align="center"><s:textarea name="boardVo.content" id="content" cssStyle="width:400px;height:200px;resize:none;" label="내 용"></s:textarea> </td></tr>
		<tr><th colspan="2"><input type="submit" value="수정"><input type="button" value="취소" id="cancel"> </th> </tr>
	</table>
	
	</form>	
</body>
</html>